import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import "@/assets/iconfont/iconfont.css";
import "@/assets/iconfont/font/iconfont.css";
import * as echarts from 'echarts';
import VueI18n from 'vue-i18n/dist/vue-i18n.esm.js'

import "@/router/permission";
Vue.use(ElementUI);
Vue.use(VueI18n);
Vue.prototype.$echarts = echarts;
Vue.config.productionTip = false
const i18n = new VueI18n({
  locale: store.getters.locale || 'zh',
  messages: {
    'zh': require('./lang/zh'),
    'en': require('./lang/en')
  }
})

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app')
